package projetindus;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Entité CorrespondanceParametres : Permet la transcodification
 */
@Entity
@Table(name = "CORRESPONDANCE_PARAMETRES")
public class CorrespondanceParametresEntity implements Serializable {

    /** Attribut serialVersionUID */
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "IDENTIFIANT_CORRESPONDANCE_PARAMETRES")
    @GeneratedValue
    private int identifiantCorrespondanceParametres;

    @ManyToOne
    private ParametreDemandeEntity parametreDemandeCorrespondanceParametres;

    @ManyToOne
    private ParametreEtapeEntity parametreEtapeCorrespondanceParametres;

    /**
     * Accesseur de parametreDemandeCorrespondanceParametres
     * 
     * @return le parametreDemandeCorrespondanceParametres
     */
    public ParametreDemandeEntity getParametreDemandeCorrespondanceParametres() {
        return parametreDemandeCorrespondanceParametres;
    }

    /**
     * Affectation de parametreDemandeCorrespondanceParametres
     * 
     * @param parametreDemandeCorrespondanceParametres parametreDemandeCorrespondanceParametres à affecter
     */
    public void setParametreDemandeCorrespondanceParametres(ParametreDemandeEntity parametreDemandeCorrespondanceParametres) {
        this.parametreDemandeCorrespondanceParametres = parametreDemandeCorrespondanceParametres;
    }

    /**
     * Accesseur de parametreEtapeCorrespondanceParametres
     * 
     * @return le parametreEtapeCorrespondanceParametres
     */
    public ParametreEtapeEntity getParametreEtapeCorrespondanceParametres() {
        return parametreEtapeCorrespondanceParametres;
    }

    /**
     * Affectation de parametreEtapeCorrespondanceParametres
     * 
     * @param parametreEtapeCorrespondanceParametres parametreEtapeCorrespondanceParametres à affecter
     */
    public void setParametreEtapeCorrespondanceParametres(ParametreEtapeEntity parametreEtapeCorrespondanceParametres) {
        this.parametreEtapeCorrespondanceParametres = parametreEtapeCorrespondanceParametres;
    }
}
